package com.example.javatwo.mapper.cg.lmx;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;

import com.example.javatwo.pojo.cg.djg.Purchase;
import com.example.javatwo.pojo.cg.lmx.CaiGouRuKuX;
import com.example.javatwo.pojo.cg.lmx.CaiGouRuKuZ;

@Mapper
public interface CaiGouRuKuXMapper {

	String queryMaxId(String date);
	List<CaiGouRuKuX> querylist();
	//查询
	List<CaiGouRuKuZ>select();
	//新增
	void insert(CaiGouRuKuZ zhu);
	//删除
	void delete(@Param("id")String  id);
	//分页
	CaiGouRuKuZ page(@Param("ym")int i,@Param("xsyy")int j);
	void shenheupdate(@Param("map")Map<String,Object> map);
	String selectId(String id);
	/**
	 * 根据billno查询记录
	 * @param id
	 * @return
	 */
	int selectCount(String billno);
	
	List<Purchase> selectZhuanDan();
}
